package org.jivesoftware.smack.filter;

import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.IQ.Type;
import org.jivesoftware.smack.packet.Packet;

public class IQTypeFilter
  implements PacketFilter
{
  private IQ.Type type;

  public IQTypeFilter(IQ.Type paramType)
  {
    this.type = paramType;
  }

  public boolean accept(Packet paramPacket)
  {
    int i;
    if ((paramPacket instanceof IQ) && (((IQ)paramPacket).getType().equals(this.type)))
      i = 1;
    while (true)
    {
      return i;
      i = 0;
    }
  }
}